﻿#查找路径下面所有源文件
aux_source_directory(. SRC_LIST)

#设置debug项目名后缀
set(CMAKE_DEBUG_POSTFIX "_gd")

#设置预处理
add_definitions(-DXTTO_EXPORTS)

#设置静态库
add_library(commonLibShareMem STATIC ${SRC_LIST})

#设置预编译
SET_TARGET_PROPERTIES(commonLibShareMem PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "stdafx.h")
cotire(commonLibShareMem)

#设置目录
set_target_properties(commonLibShareMem PROPERTIES FOLDER "CommonLib")

#复制头文件到inchhvi
#install(FILES util.h DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/common)

install(TARGETS commonLibShareMem 
        RUNTIME DESTINATION ${PROJECT_BINARY_DIR}/bin
		ARCHIVE DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/lib)


